﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Import
{
    public class CarriedData
    {
        #region Constructors
        public CarriedData()
        {
            this.CharactersInfo = new Dictionary<string, CarriedInfo>();
        }
        public CarriedData(TimeCode timeCode, CharacterInfo character, int words)
        {
            this.FirstTimeCode      = timeCode;
            this.LastTimeCode       = timeCode;
            this.LastLoopTimeCode   = timeCode;
            this.CharactersInfo     = character == null
                ? new Dictionary<string, CarriedInfo>()
                : new Dictionary<string, CarriedInfo>()
                {
                    //{character.Name, new CarriedInfo() {Character = character, Words = words}}
                    {character.Name, new CarriedInfo() {Character = character }}
                };
            this.Words = 0;
        }
        #endregion

        #region Properties
        public class CarriedInfo
        {
            public CharacterInfo Character { get; set; }
            //public int Words { get; set; }
        }
        public int Words { get; set; }
        public Dictionary<string, CarriedInfo> CharactersInfo { get; set; }
        public TimeCode FirstTimeCode { get; set; }
        public TimeCode LastTimeCode { get; set; }
        public TimeCode LastLoopTimeCode { get; set; }
        #endregion
    }
}
